<?php
// +----------------------------------------------------------------------
// | Iecms [ Make the most exquisite CMS ]
// +----------------------------------------------------------------------
// | Copyright (c) 2009~2019 http://www.iemoo.com All rights reserved.
// +----------------------------------------------------------------------
// | Author: iemoo <i@iemoo.com>
// +----------------------------------------------------------------------
// | DateTime: 2019/11/19 11:08
// +----------------------------------------------------------------------
namespace app\admin\validate;

use think\Validate;

/**
 * 验证器
 * @package app\admin\validate
 */
class Fragment extends Validate
{
    protected $rule = [
        'title'				=> 'require|max:200',
		'name'				=> 'require|alphaNum|unique:fragment',
		'image'				=> 'max:200',
		'content'			=> 'max:1000',
    ];

    protected $message = [
        'title.require'				=> '请输入标题',
		'title.max'					=> '标题过长',
		'name.require'				=> '请输入调用名称',
		'name.alphaNum'				=> '调用名称只能是字母、数字',
		'name.unique'				=> '调用名称已经有重复的了',
		'image.max'					=> '图片地址过长',
		'content.max'				=> '碎片内容过长',
    ];
	

}